package com.iiot.test;

/**
 * @author dzm
 * @create 2018-06-20-10:34
 */
public class Thread1 extends Thread {
    public Thread1(String name){
        super(name);
    }
    @Override
    public void run() {
        while (Variate.operationFlage){
            try{
                System.out.println("Thread" + getName() + "正在打印");
                Thread.sleep(1000);
            }catch (Exception e){}
        }
        System.out.println("Thread" + getName() + "终止条件 + 1");
        Variate.addCondition();
    }
}
